package runtime;

import org.testng.annotations.Test;

import java.io.IOException;

public class RuntimeWin {

    @Test
    public void t1() throws IOException {
        String command = "ipconfig";
        Process exec = Runtime.getRuntime().exec(command);
        System.out.println(exec);
        System.out.println(exec.info());


    }
}
